package yoursense.util;

import java.util.Comparator;

import yoursense.Bean.LV_Bean;

public class SortByPrice implements Comparator {

	public int compare(Object o1, Object o2) {
		LV_Bean l1=(LV_Bean)o1;
		LV_Bean l2=(LV_Bean) o2;
		if (l1.getFood().getPrice()>l2.getFood().getPrice()) {
			return 1;
		}
		return 0;
	}

}
